package com.kd.sms.listener;

import com.kd.sms.event.SendSmsEvent;
import com.kd.sms.model.resp.SmsRespData;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class SendSmsListener {

    @EventListener
    public void onApplicationEvent(SendSmsEvent event) {
        SmsRespData respData = event.getSmsResp().getSmsRespData();
        // todo 写入数据库
    }
}
